Pre-fragmentation of data destined for low resource clients

ABSTRACT

Program data for use in electronic program guides is fragmented in advance of delivery to a low resource client. In the described implementation, the program data is fragmented into equal size fragments. The size of each fragment is selected to guarantee that the data fragments will fit in pre-allocated memory segments at the client. When the program data is delivered to the client, the client stores the data packets in the memory segments without making system calls to the memory.

TECHNICAL FIELD

[0001] This invention relates to television entertainment architectures in which program data is generated, processed, and distributed to low resource clients, such as set top boxes. More particularly, this invention relates to fragmenting the program data in advance of delivery to the client so that the data fragments fit in memory blocks of pre-specified size at the client.

BACKGROUND

[0002] Electronic program guides (EPGs) enable TV viewers to navigate through an onscreen program guide and locate shows. With the guides, viewers can look at schedules of current and future programming, set reminders for upcoming programs, or enter instructions to record one or more shows.

[0003] Program data for an EPG is stored in the client memory. The amount of program data available for the EPG is dependent upon the resource environment at the client. In a low-resource environment, meaning the client has limited memory and/or processing resources, the amount of memory reserved for program data is limited. Making this situation more difficult is that every time a free memory call is made, the limited amount of memory is fragmented. This fragmentation effectively uses up memory space unless a de-fragmentation or garbage collection process is run. In the low-resource environment, however, such memory management techniques are too resource expensive to be viable options.

[0004] Accordingly, for such low-resource environments, there is a need to improve the way program data is stored and accessed at the client.

SUMMARY

[0005] Program data for use in electronic program guides is fragmented in advance of delivery to a low resource client. In the described implementation, the program data is fragmented into equal size fragments. The size of each fragment is selected to guarantee that the data fragments will fit in pre-allocated memory segments at the client. When the program data is delivered to the client, the client stores the data packets in the memory segments without making system calls to the memory.

BRIEF DESCRIPTION OF THE DRAWINGS

[0006]FIG. 1 illustrates a television entertainment system including a publisher to generate program data, a data center to process the program data, and one or more head ends to distribute the program data to multiple clients.

[0007]FIG. 2 is a block diagram of a server computer resident at the data center to process the program data.

[0008]FIG. 3 is a block diagram of an exemplary client implemented as a set top box.

[0009]FIG. 4 illustrates an exemplary fragmentation process in which the program data file fragmented prior to delivery to the clients.

DETAILED DESCRIPTION

[0010] The following discussion is directed to television entertainment systems, such as interactive TV networks, cable networks that utilize electronic program guides, and Web-enabled TV networks. Clients in such systems range from full-resource clients with substantial memory and processing resources (e.g., TV-enabled personal computers, TV recorders equipped with hard-disks) to low-resource clients with limited memory and/or processing resources (e.g., traditional set-top boxes). While aspects of the systems and methods described below can be used in any of these systems and for any types of clients, they are particularly well suited for systems with low-resource clients. Hence, the following discussion describes the systems and methods in the context of a low-resource environment.

[0011] Television Entertainment System

[0012]FIG. 1 shows a television entertainment system 100 that facilitates distribution of program data from a publisher to the viewers. System 100 includes a publisher 102 that creates the program data. One example of a publisher 102 is the Tribune Corporation, which generates data for interactive television networks. As used herein, program data refers to the type of data that might be used by an electronic program guide (EPG) and/or to facilitate interactive television functionality. Program data includes program titles, ratings, characters, description, actor names, year made, and so on. The terms “program data” and “EPG data” are used interchangeably throughout this disclosure.

[0013] The EPG data is transferred as an electronic file 104 from the publisher 102 to a data center 106. As one example, the program data 104 is transferred using a file transfer protocol (FTP) over a TCP/IP network (e.g., Internet, UNIX, etc.) to the data center 106. The electronic file 106 is stored in an EPG database 108 at the data center 106.

[0014] The original version of the EPG data contains all of the programming information for multiple days. An EPG server 110 resides at the data center 106 to process the EPG data prior to distribution. The processing involves one or more techniques to condition the EPG data so that a low resource client can handle the data more effectively. Low resource clients, such as a set top box, are typically characterized as having limited memory and/or processing resources. Such clients may not be able to store the entire original version of the EPG data. With limited resources at the client, the processes performed by the EPG server 110 are helpful to precondition the EPG data into a more suitable form for storage and processing at the client.

[0015] Among other processes, the EPG server 110 is configured to reduce the amount of EPG data so that it can be stored at low-resource clients. The EPG server 110 might also alter the format or structure of EPG data 104 to enable easier searching or other processes at the clients. The EPG server 110 might also compress the EPG data prior to its distribution.

[0016] The EPG server 110 creates different versions of the program data for different head end services to account for programming preferences and lineups. For example, the EPG server 110 limits the EPG data to those channels that are relevant to the respective head ends. In the illustrated example, the EPG server 110 creates multiple versions of the EPG data, which are designated as EPG₁, EPG₂, . . . , EPG_(h), and stores them in respective databases 112(1), 112(2), . . . , 112(h). The data center 106 transfers the head end versions of the EPG data as electronic files 114 to associated head end services 120(1), 120(2), . . . , 120(h) using, for example, FTP or other suitable transfer protocols over a network.

[0017] At individual head end services, as represented by service 120(1), the EPG data is stored in a head end database 122. A carousel file system 124 repeatedly broadcasts the EPG file 126 over an out-of-band (OOB) channel to the clients 130(1), 130(2), . . . , 130(c). The distributed EPG file 126 may or may not be identical to the file 114 received from the data center 106. Distribution from the head ends 120 to the clients 130 may be accommodated in a number of ways, including cable, RF, microwave, network (e.g., Internet), and satellite.

[0018] In the illustrated implementation, the clients 130 are embodied as set top boxes (STBs) connected to associated televisions 132(1), 130(2), . . . , 132(c). The clients 130 are often equipped with sufficient processing and storage capabilities to store and run an operating system and a few programs. Examples of programs stored on a client might include a Web browser, an electronic programming guide, a personal scheduler, and so forth. Although the STBs are shown separately from the television sets, they may alternatively be built into the television sets as integral units. Furthermore, in other implementations, the clients may be embodied as other devices capable of handling EPG data, such as a broadcast-enabled computer, an information appliance, or the like.

[0019] Exemplary EPG Server

[0020]FIG. 2 shows an exemplary implementation of the EPG server 110. It has a processing unit 202 and memory 204. Memory 204 includes volatile memory 206 (e.g., RAM) and non-volatile memory 208 (e.g., ROM, flash, floppy disk, hard disk, CD-ROM, disk array, etc.). The server 110 may be further equipped with a database I/O 210 to interface with the EPG database 108 and/or version databases 112(1)-112(h) and a network I/O 212 to provide access to one or more networks. The server 110 may optionally be equipped with one or more input devices 214 (e.g., keyboard, mouse, track ball, touch panel screen, etc.) and one or more output devices 216 (e.g., display, printer, etc.).

[0021] One or more programs are stored in memory 204 and executed on processing unit 202 to process the EPG data. The programs include a data structure fragmenter 220, a program table constructor 222, a time-based data selector 224, and a data compressor 226. The EPG server 110 also runs an operating system (not shown), such as a Windows® brand operating system from Microsoft Corporation, or a Unix-based operating system.

[0022] The various processes performed by the EPG server 110 are intended to place the EPG data in better condition for handling by the low resource client. The data structure fragmenter 220 pre-formats the data at the server for use by the client. The client 130 has previously designated an arbitrary data set size for a particular application, such as an EPG application, and allocates a block of memory in segments of that size. The arbitrary size is communicated to the EPG server 110, and the data structure fragmenter 220 “fragments” the data in advance of delivery to the client 130. The client-designated arbitrary data size is thus guaranteed by the server 110 to be the size of data transmitted to the client. Therefore, when the client 130 receives the data, the client can allocate the data packets to the pre-allocated segments in memory without making system calls to the memory.

[0023] The data sorter 222 pre-sorts EPG data to improve searching at the client. The EPG data is pre-sorted according to a type of field, such as a title. The data sorter 222 constructs a table with the pre-sorted data and this table is used by the client to facilitate fast searches, even though the client has limited processing resources.

[0024] The time-based data selector 224 selects which program data to be included in the file to be downloaded to the client. Low resource clients may not be able to store and display program schedule information for multiple days because of limited memory. The time-based selector 224 selectively stores more data for a current time period represented by the EPG (e.g., the current day) and progressively less data over time for subsequent time units (e.g., next several days). This enables a rich display of information for the time period in which viewers are most likely interested, while offering some additional subset of data for future programming.

[0025] The data compressor 226 can be used to compress data destined for the client to a compressed format that remains easily searchable at the client. In one implementation, the data compressor 226 makes an initial pass through the data and constructs a table identifying the most frequently used character sequences. During a subsequent pass, the data compressor 226 compresses the data string by substituting a value for the most frequent character sequences. The data compressor 226 constructs a code table that tracks which values are substituted for the character sequences. The compressed data file and code table can then be downloaded to the client for decompression.

[0026] It is noted that the processes carried out by the EPG server are described as being implemented in software. However, in alternative implementations, some or all of these processes may be implemented in firmware and/or hardware.

[0027] Exemplary Client

[0028]FIG. 3 shows an exemplary client 130 implemented as a set-top box. The client 130 has a central processing unit (CPU) 302 coupled to a decoder ASIC (application specific integrated circuit) 304. In addition to decoder circuitry, ASIC 304 may also contain logic circuitry, bussing circuitry, and a video controller. The client 130 further includes an out-of-band (OOB) tuner 306 to tune to the broadcast channel over which the EPG data file 126 is downloaded. One or more in-band tuner 308 is also provided to tune to various television signals. These signals are passed through the ASIC 304 for audio and video decoding and then to an output to the television set. With the tuners and ASIC 304, the client is equipped with hardware and/or software to receive and decode a broadcast video signal, such as an NTSC, PAL, SECAM or other TV system video signal and provide video data to the television set.

[0029] One or more memories are coupled to ASIC 304 to store software and data used to operate the client. In the illustrated implementation, the client has random access memory (RAM) 310, read only memory (ROM) 312, and flash memory 314. RAM 310 stores data used by the client, including the EPG data file 126 as well as any compression table used to decompress the file. ROM 312 stores an operating system (not shown).

[0030] One or more programs may be stored in the ROM 312 or in the flash memory 314. In the illustrated example, the flash memory 314 stores a decompression program 320 that can be executed to decompress the EPG data file 126. An EPG program 322 is also stored in the flash memory 314 to operate on the EPG data 126. The EPG program 322 may include a search engine 324 to search the EPG data in response to queries submitted by the viewer. The search engine might be used, for example, to locate particular television shows by title, or find shows with a particular rating, or identify programs with selected actors.

[0031] The client 130 may further include other components, which are not shown for simplicity purposes. For instance, the client is typically equipped with hardware and/or software to present a graphical user interface to a viewer, by which the viewer can navigate the EPG, or (if enabled) to access various Internet system network services, browse the Web, or send email. Other possible components might include a network connection (e.g., modem, ISDN modem, etc.) to provide connection to a network, an IR interface, display, power resources, etc. A remote control may further be provided to allow the user to control the client.

[0032] Fragmentation of Program Data

[0033] Low resource client 130 has limited memory resources. For example, set top boxes are typically manufactured with a fixed amount of memory that satisfies the manufacturer's price/performance criteria. A portion of this memory is allocated to hold EPG data. The amount of EPG data to be transmitted down to the set top box might be expected to consume, for example, no more than 500K bytes of memory.

[0034] Accordingly, one process performed on the EPG data prior to delivery to the client concerns formatting the EPG data into multiple blocks of a predetermined size. The client 130 designates an arbitrary data size and allocates a portion of its memory in segments of that size. The arbitrary size is communicated to the EPG server 110. The data structure fragmenter 220 “fragments” the publisher-created EPG data 104 stored in the EPG database 108, or a subset of that data, in advance of delivery to the client 130.

[0035] When finally delivered, the fragmented data fits neatly into the pre-allocated segments of the client memory. As a result, system calls to the memory for purposes of accessing EPG data are greatly reduced or eliminated, resulting in less fragmentation of memory and more efficient storage of the EPG data. It is noted that the fragmentation process may be performed at other computing sites in system 100, including at the head end services 120.

[0036]FIG. 4 illustrates one exemplary implementation of the fragmentation process 400. The process is described with reference to a diagrammatic illustration depicting exemplary components of the television entertainment system 100 that might be used to perform the enumerated operations.

[0037] At 402, the client 130 designates an arbitrary data size and allocates a portion of its memory 310 into segments 420 of that size. As one example, the memory segments 420 are equal size segments of 16K bytes. This memory allocation size might alternatively be specified by the manufacturer.

[0038] At 404, the client 130 communicates the size of the memory segments 420 to an upstream server, such as EPG server 110. Alternatively, the segment size of the client memory may be a parameter that is already known to the EPG server 110. For instance, the clients may be configured during manufacturing to allocate the memory designated for holding EPG data in certain size segments. This parameter could then be provided to the EPG server 110 as the target size for the data fragments. It is also noted that other servers besides the EPG server 110 may be employed to perform the fragmentation techniques as described herein, such as servers at head end services 120.

[0039] At 406, the EPG server 110 begins producing the EPG data file for delivery to the client. The EPG server 110 may structure and format the data file in many ways. One approach is to construct multiple tables that hold various types of EPG data to be sent to the client. For instance, there may be different tables for program listings, schedules, stations, channel numbers, and so forth. The tables may contain all or a portion of the EPG data as published by the publisher 102. The tables are arranged in a data structure, which is represented as structure 422 in FIG. 4. Each table is self-contained in that it knows its type and contents.

[0040] The table data structure 422 is broken into multiple chunks 424 that may or may not be the same size. Each chunk 424 is atomic, containing a range of records and an index to describe where the records in the table(s) fit within the context of the whole EPG data file. Each chunk 424 may hold parts of one table or up to multiple tables. Individual tables know in which chunk they reside. Table boundaries are therefore different than chunk boundaries, although they may coincide.

[0041] At 408, the data structure fragmenter 220 fragments the table structure 422 into smaller size fragments 430. Each structure fragment 430 is capable of fitting in a corresponding memory segment 420. More particularly, in our example, the EPG data fragments 430 are of a size that is guaranteed to be less than or equal to the arbitrary size designated by the client 130, or less than or equal to 16K bytes. Notice that the fragment boundaries may or may not coincide with the chunk boundaries and/or table boundaries.

[0042] At 410, the fragmented data file 114 can be delivered to the client 130 via the head end service. When the client 130 receives the fragmented data, the client stores the data fragments 430 in respective pre-allocated segments 420 without making system calls to the memory. When the client subsequently makes a call to free memory, the memory is provided in the fixed-size segments. In this way, fragmentation is constrained to the fixed-size spaces that can be more easily managed, thereby eliminating the need for memory management techniques such as de-fragmentation or garbage collection processes.

Conclusion

[0043] Although the invention has been described in language specific to structural features and/or methodological acts, it is to be understood that the invention defined in the appended claims is not necessarily limited to the specific features or acts described. Rather, the specific features and acts are disclosed as exemplary forms of implementing the claimed invention. 

1. A method comprising: constructing a data file that contains program data for an electronic program guide executing at a remote client; and fragmenting the data file into equal-size fragments prior to delivery of the data file to the remote client.
 2. A method as recited in claim 1, wherein the constructing comprises: forming a data structure of multiple tables that hold different portions of the program data; and breaking the data structure into multiple chunks such that each chunk contains at least part of a table.
 3. A method as recited in claim 1, wherein the remote client has a memory that is segmented into segments of a specified size, and the fragmenting comprises dividing the data file into equal-size fragments of a size that does not exceed the specified size of the memory segments of the remote client.
 4. A method as recited in claim 3, further comprising receiving, from the remote client, the specified size of the memory segments.
 5. A method for delivering program data for an electronic program guide executing at a remote client, the client having a memory segmented into multiple segments to store the program data, the method comprising: receiving, from the client, information pertaining to a segment size of the segments in the client memory; forming a data structure containing the program data; fragmenting the data structure into equal-size fragments, each fragment being sized to not exceed the segment size of the segments in the client memory so that the fragments of the data structure will fit within the segments of the client memory; and transmitting the fragments of the data structure to the client.
 6. A method as recited in claim 5, wherein the forming comprises: building multiple tables that hold different portions of the program data, the data structure holding the multiple tables; and breaking the data structure into multiple chunks such that each chunk contains at least part of a table.
 7. A method as recited in claim 6, wherein the chunks are different in size than the tables.
 8. A method as recited in claim 6, wherein the chunks are different in size than the tables, and the fragments are different in size than the chunks and the tables.
 9. A computer-readable medium comprising computer-executable instructions that, when executed, direct a computing system to: form a data structure containing program data for an electronic program guide; and fragment the data file into equal-size fragments prior to delivery of the data file to a client.
 10. A computer-readable medium as recited in claim 9, wherein the client has a memory that is segmented into segments of a specified size, and the equal-size fragments sized not to exceed the specified size of the memory segments of the client.
 11. A computer-readable medium as recited in claim 10, further comprising computer-executable instructions that, when executed, direct a computing system to receive the specified size from the client and to use the specified size as a target size when fragmenting the data file.
 12. A computer-readable medium as recited in claim 9, further comprising computer-executable instructions that, when executed, direct a computing system to transmit the data file to the client.
 13. A computer system, comprising: a memory; a processor coupled to the memory; and a data structure fragmenter program stored in memory and executed on the processor to fragment electronic program guide (EPG) data into equal-size data fragments for storage in segments of memory at a remote client.
 14. A computer system as recited in claim 13, wherein the client has a memory that is segmented into segments of a specified size, and the data structure fragmenter program comprises instructions, that when executed on the processor, direct the computer system to: form a data structure containing the EPG data; and fragment the data file into equal-size fragments sized not to exceed the specified size of the memory segments of the client.
 15. A computer system as recited in claim 13, wherein the data structure fragmenter program comprises instructions, that when executed on the processor, direct the computer system to: form a data structure containing multiple tables that hold different portions of the program data; and break the data structure into multiple chunks such that each chunk contains at least part of a table.
 16. A processing system, comprising: formation means for forming a data structure with program data for an electronic program guide, the electronic program guide residing at a remote client; fragmentation means for fragmenting the data structure into equal-size fragments, each fragment being sized to not exceed a segment size of individual memory segments pre-allocated in memory at the client; and transmission means for transmitting the data structure to the client.
 17. A processing system as recited in claim 16, wherein the formation means comprises: means for forming a data structure of multiple tables that hold different portions of the program data; and means for breaking the data structure into multiple chunks such that each chunk contains at least part of a table.
 18. A television entertainment system, comprising: multiple clients to receive television signals and corresponding program data for an electronic program guide (EPG), individual clients having a memory dedicated to storing the program data, the client memory being segmented into segments; and an EPG server to fragment the program data into equal-size data fragments for storage in the segments of the client memory
 19. A television entertainment system as recited in claim 18, wherein the clients communicate a specified size of the segments to the EPG server and the EPG server fragments the program data into data fragments that do not exceed the specified size.
 20. A television entertainment system as recited in claim 18, wherein the EPG server is configured to construct a data structure containing multiple tables that hold different portions of the program data and break the data structure into multiple chunks such that each chunk contains at least part of a table.
 21. A television entertainment system as recited in claim 20, wherein the chunks are different in size than the tables.
 22. A television entertainment system as recited in claim 20, wherein the chunks are different in size than the tables, and the fragments are different in size than the chunks and the tables. 